package com.kgc.community.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Village {
    private Integer id;

    private String name;

    private String describes;

    private String address;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date buildTime;

    private String buildCompany;

    private String propertyCompany;

    private Integer blockCount;

    private Integer roomCount;

    public Village(Integer id, String name, String describes, String address, Date buildTime, String buildCompany, Integer blockCount, Integer roomCount) {
        this.id = id;
        this.name = name;
        this.describes = describes;
        this.address = address;
        this.buildTime = buildTime;
        this.buildCompany = buildCompany;
        this.blockCount = blockCount;
        this.roomCount = roomCount;
    }

    public Village() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getDescribes() {
        return describes;
    }

    public void setDescribes(String describes) {
        this.describes = describes == null ? null : describes.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public Date getBuildTime() {
        return buildTime;
    }

    public void setBuildTime(Date buildTime) {
        this.buildTime = buildTime;
    }

    public String getBuildCompany() {
        return buildCompany;
    }

    public void setBuildCompany(String buildCompany) {
        this.buildCompany = buildCompany == null ? null : buildCompany.trim();
    }

    public String getPropertyCompany() {
        return propertyCompany;
    }

    public void setPropertyCompany(String propertyCompany) {
        this.propertyCompany = propertyCompany == null ? null : propertyCompany.trim();
    }

    public Integer getBlockCount() {
        return blockCount;
    }

    public void setBlockCount(Integer blockCount) {
        this.blockCount = blockCount;
    }

    public Integer getRoomCount() {
        return roomCount;
    }

    public void setRoomCount(Integer roomCount) {
        this.roomCount = roomCount;
    }

    @Override
    public String toString() {
        return "Village{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", describes='" + describes + '\'' +
                ", address='" + address + '\'' +
                ", buildTime=" + buildTime +
                ", buildCompany='" + buildCompany + '\'' +
                ", propertyCompany='" + propertyCompany + '\'' +
                ", blockCount=" + blockCount +
                ", roomCount=" + roomCount +
                '}';
    }
}